package com.atguigu.day20.syn01.smethod02;

class Animal {

}
class Dog extends Animal{

}

public class DogTest{
    public static void main(String[] args) {
        Animal a = new Dog();

        Class  c = a.getClass();
        System.out.println("c = " + c);

        Class c2 = Dog.class;
        System.out.println("c2 = " + c2);

        System.out.println(c==c2);
    }
}
